<template>
	<view>
		<view class="order">
			10个鸡蛋
		</view>
		<view class="order">
			1杯奶茶
		</view>
		<view class="order">
			10盒泡面
		</view>
		<view class="">
			{{index}}
		</view>
	</view>
</template>

<script>
	import {mapMutations,mapState} from 'vuex'
	export default {
		data() {
			return {
				
			};
		},
		onReady() {
			const query = uni.createSelectorQuery().in(this);
			query.selectAll('.order').boundingClientRect(data => {
				console.log(data);
			}).exec();
		},
		methods:{
			...mapMutations(['test'])
		},
		computed:{
			...mapState(['index'])
		}
	}
</script>

<style lang="less">

</style>
